<include file="public/header_m"/>
<div class="am-cf admin-main">
    <!-- sidebar start -->
<include file="public/sidebar_m"/>
    <!-- sidebar end -->

    <!-- content start -->
    <div class="admin-content">
        <div class="am-cf am-padding">
            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">员工列表</strong></div>
        </div>

        <div class="am-g">
            <div class="am-u-md-6 am-cf">
                <div class="am-fl am-cf">
                    <div class="am-btn-toolbar am-fl">
                    </div>
                </div>
            </div>
            <form method="post" action="__URL__/search" class="am-form">
                <div class="am-form-group am-margin-left am-fl">
                    <select name="select" id="select">
                        <option value="phone">手机</option>
                        <option value="yuyue_date">日期</option>
                    </select>
                </div>
                <div class="am-u-md-3 am-cf">
                    <div class="am-fr">
                        <div class="am-input-group am-input-group-sm">
                            <input type="text" class="am-form-field" name="ifin" id="ifin">
                <span class="am-input-group-btn">
                  <button class="am-btn am-btn-default" type="submit">搜索</button>
                </span>
                        </div>
                    </div>
                </div>
            </form>
        </div>

        <div class="am-g">
            <div class="am-u-sm-12">
                <table class="am-table am-table-striped am-table-hover table-main">
                    <thead>
                    <tr>
                        <th class="table-check"><input type="checkbox"/></th>
                        <th class="table-type">姓名</th>
                        <th class="table-title">手机</th>
                        <th class="table-type">角色</th>
                        <th class="table-author">介绍</th>
                        <th class="table-set">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="datas" item="data">
                        <tr>
                            <td><input type="checkbox"/></td>
                            <td>{$data.name}</td>
                            <td>{$data.phone}</td>
                            <if condition="$data.role eq 2">
                            <td>量体师</td>
                                <elseif condition="$data.role eq 3"/>
                                <td>客服</td>
                                <elseif condition = "$data.role eq 0"/>
                                <td>admin</td>
                                <elseif condition = "$data.role eq 4"/>
                                <td>工厂</td>
                                <elseif condition = "$data.role eq 5"/>
                                <td>销售员</td>
                            </if>
                            <td>{$data.intro}</td>
                            <td>
                                <div class="am-btn-toolbar">
                                    <div class="am-btn-group am-btn-group-xs">
                                        <button class="am-btn am-btn-default am-btn-xs am-text-danger"><span
                                                class="am-icon-trash-o"></span><a href="__URL__/userDel2/id/{$data.uid}">删除</a></button>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </foreach>
                    </tbody>
                </table>
                <div class="am-cf">
                    {$page}
                </div>
                <hr/>
                </form>
            </div>
        </div>
    </div>
    <!-- content end -->
</div>
<include file="public/footer_m"/>

